package threadLock.threadBasics;

public class ThreadSleep {
    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(() -> {
            try {
                System.out.println("child thread is is sleep");
                Thread.sleep(10000);
                System.out.println("child thread is is awaked");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        });
        thread.start();
        thread.sleep(100);
        thread.interrupt();
    }
}
